﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataImporter.Models
{
    /// <summary>
    /// 糖尿病
    /// </summary>
    public class T2DM
    {
        [SugarColumn(IsPrimaryKey = true)]
        public int Id { set; get; }

        /// <summary>
        /// 名称
        /// </summary>
        [SugarColumn(Length = 30, ColumnDataType = "nvarchar")]
        public string Name { set; get; }

        /// <summary>
        /// 编码
        /// </summary>
        [SugarColumn(Length = 20)]
        public string Code { set; get; }

        /// <summary>
        /// 分数
        /// </summary>
        public int Score { set; get; }

        /// <summary>
        /// 父ID
        /// </summary>
        public int ParentId { set; get; }

        /// <summary>
        /// 类型：3:年龄 1:体检项 2:问答
        /// </summary>
        public int Type { set; get; }

        /// <summary>
        /// 规则
        /// </summary>
        [SugarColumn(Length = 30, IsNullable = true)]
        public string Rule { set; get; }

        /// <summary>
        /// 体检编码
        /// </summary>
        [SugarColumn(Length = 20, IsNullable = true)]
        public string PECode { set; get; }
    }
}
